package com.heima.e_commerce;

public class Member {
    private String name;
    private double points;

    public Member() {
    }

    public Member(String name, double points) {
        this.name = name;
        this.points = points;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPoints() {
        return points;
    }

    public void setPoints(double points) {
        this.points = points;
    }

    public void addPoints(double points) {
        this.points += points;
        System.out.println("添加成功");
    }

    public void display() {
        System.out.println("会员线姓名:" + getName() + "会员积分:" + getPoints());
    }
}
